package sensors.virtualSensors;

import robots.VirtualGhost;
import sensors.Sensor;
import simulation.Simulator;

public abstract class VirtualSensor extends Sensor {
	
	private Simulator sim;
	protected Randomizer randomizer;
	/**
	 * 
	 * @param ghost
	 * @param sim
	 * @param randomValues bepaalt of je random waardes wilt superponeren op je sensoren
	 */
	public VirtualSensor(VirtualGhost ghost, Simulator sim, boolean randomValues) {
		super(ghost);
		setSimulator(sim);
		if(randomValues){
			randomizer = new Randomizer();
		}
	}
	public VirtualSensor(VirtualGhost ghost, Simulator sim){
		this(ghost, sim, false);
		
	}
	public Simulator getSimulator(){
		return sim;
	}
	private void setSimulator(Simulator sim){
		this.sim = sim;
	}
}
